<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/common/topBegin.jsp"%>
 <script type="text/javascript" src="${ctx}/js/jquery-1.7.1.min.js"></script>
 <script type="text/javascript" src="${ctx}/js/jquery.jqprint-0.3.js"></script>
</head>
<body>
<div  id="table_form_div" class="table_form1">
  <table class="table-form" width="100%">
     <tbody>
		<tr>
			<td style="height:25px;"colspan="6"><span style="padding-left:10px;"]><img  src="${ctx}/images/hailiang.png" style="height:20px;"/></span>
			<span style="font-size:16px;folat:left;clear:both;">海梁信息科技电子单</span></td>
		</tr>
		<tr>
			<td colspan="6"  class="table-td" style="font-size:20px;text-align:center">人员基本信息</td>
		</tr>
		<tr>
			<td colspan="6"  class="table-td" style="font-size:15px;text-align:right;padding-right:15px;">
				日期:<fmt:formatDate value="${entity.createTime}" pattern="yyyy-MM-dd"/>
		</tr>
		<tr>
			<td class="table-th" width="15%" style="height:36px;font-size:15px;">单位名称</td>
			<td colspan="5" class="table-td" style="font-size:15px">
				${entity.company.name }
			</td>
		</tr>
      <tr>
	       <td width="15%" class="table-th" style="font-size:15px;height:36px;">人员姓名</td>
	       <td class="table-td" style="font-size:15px;height:36px;" width="20%">${entity.name}</td>
	       <td class="table-th" style="height:36px;font-size:15px;" width="13%">身份证</td>
	       <td class="table-td" style="font-size:15px;height:36px;" width="20%">${entity.idno}</td>
	        <td  width="12%" class="table-th" style="font-size:15px;height:36px;">性别</td>
           <td class="table-td" style="font-size:15px;height:36px;" width="20%">
           		<c:choose>
        			<c:when test="${entity.gender==1}">男</c:when>
        			<c:otherwise>女</c:otherwise>
        		</c:choose>
           </td>
	  </tr>
	  <tr>
	  	<td width="15%" class="table-th" style="font-size:15px;height:36px;">出生日期</td>
	       <td class="table-td" style="font-size:15px" width="20%">
	       <c:if test="${not empty entity.birthDay  }">
	         <fmt:formatDate value="${entity.birthDay}" pattern="yyyy-MM-dd"/>
	       </c:if>
	       </td>
	       <td class="table-th"  style="height:36px;font-size:15px;" width="13%">联系电话</td>
	       <td class="table-td" style="height:36px;font-size:15px;" width="20%">${entity.contractPhone }</td>
	       <td  width="12%" class="table-th" style="height:36px;font-size:15px;">家庭电话</td>
           <td class="table-td" style="height:36px;font-size:15px;" width="20%">${entity.homePhone}</td>
	  </tr>
	  <c:choose>
	  	<c:when test="${entity.type==1 }">
		  <tr>
		  	<td width="15%" class="table-th" style="font-size:15px">驾驶证号</td>
	        <td class="table-td" style="font-size:15px" width="20%">${entity.driverLiceseNum}</td>
	        <td class="table-th" style="height:36px;font-size:15px;" width="13%">驾驶证号有效期</td>
	        <td class="table-td" style="font-size:15px;height:36px;" width="20%">
	       	 <c:if test="${not empty entity.driverLiceseNumValidity  }">
	       		<fmt:formatDate value="${entity.driverLiceseNumValidity}" pattern="yyyy-MM-dd"/>
	       	 </c:if>
	        </td>
	        <td  width="12%" class="table-th" style="font-size:15px;height:36px;">准驾类型</td>
           <td class="table-td" style="font-size:15px;height:36px;" width="20%">${entity.driverType }</td>
		  </tr>
		  <tr>
		    <td width="15%" class="table-th" style="font-size:15px;height:36px;">押运员从业资格证号</td>
	        <td class="table-td" style="font-size:15px;height:36px;" width="20%">${entity.driverQuaCertNum}</td>
	        <td class="table-th" style="height:36px;font-size:15px;" width="13%">从业资格证号有效期</td>
	        <td class="table-td" style="font-size:15px;height:36px;" colspan="3">
	       	<c:if test="${not empty entity.driverQuaCertNumValidity  }">
	       		<fmt:formatDate value="${entity.driverQuaCertNumValidity}" pattern="yyyy-MM-dd"/>
	       	</c:if>
	       </td>
		  </tr>
		  <c:if test="${not empty superCargoNum }">
		  	<tr>
		  		<td width="15%" class="table-th" style="font-size:15px;height:36px;">押运员从业资格证号</td>
		        <td class="table-td" style="font-size:15px;height:36px;" width="20%">${entity.superCargoNum}</td>
		        <td class="table-th" style="height:36px;font-size:15px;" width="13%">从业资格证号有效期</td>
		        <td class="table-td" style="font-size:15px;height:36px;" colspan="3">
		       	 <c:if test="${not empty entity.superCargoNumValidity  }">
		       		<fmt:formatDate value="${entity.superCargoNumValidity}" pattern="yyyy-MM-dd"/>
		       	 </c:if>
		        </td>
		  	</tr>
		  </c:if>
		 </c:when>
	
		 <c:when test="${entity.type==2 }">
		 	<tr>
		 		<td width="15%" class="table-th" style="font-size:15px;height:36px;">押运员从业资格证号</td>
		        <td class="table-td" style="font-size:15px;height:36px;" width="20%">${entity.superCargoNum}</td>
		        <td class="table-th" style="height:36px;font-size:15px;" width="13%">从业资格证号有效期</td>
		        <td class="table-td" style="font-size:15px;height:36px;" colspan="3">
		       	 <c:if test="${not empty entity.superCargoNumValidity  }">
		       		<fmt:formatDate value="${entity.superCargoNumValidity}" pattern="yyyy-MM-dd"/>
		       	 </c:if>
		        </td>
		 	</tr>
		 </c:when>
		 
		 <c:when test="${entity.type==3 }">
		 	<tr>
		 		<td width="15%" class="table-th" style="font-size:15px;height:36px;">安管员从业资格证号</td>
		        <td class="table-td" style="font-size:15px;height:36px;" width="20%">${entity.safetyOfficerNum}</td>
		        <td class="table-th" style="height:36px;font-size:15px;" width="13%">从业资格证号有效期</td>
		        <td class="table-td" style="font-size:15px;height:36px;" colspan="3">
		       	 <c:if test="${not empty entity.safetyOfficerNumValidity  }">
		       		<fmt:formatDate value="${entity.safetyOfficerNumValidity}" pattern="yyyy-MM-dd"/>
		       	 </c:if>
		        </td>
		 	</tr>
		 </c:when>
		 <c:when test="${entity.type==4 }">
		   <tr>
		 		<td width="15%" class="table-th" style="font-size:15px;height:36px;">装卸管理员从业资格证号</td>
		        <td class="table-td" style="font-size:15px;height:36px;" width="20%">${entity.loadUnloadManNum}</td>
		        <td class="table-th" style="height:36px;font-size:15px;" width="13%">从业资格证号有效期</td>
		        <td class="table-td" style="font-size:15px;height:36px;" colspan="3">
		       	 <c:if test="${not empty entity.loadUnloadManNum  }">
		       		<fmt:formatDate value="${entity.loadUnloadManNum}" pattern="yyyy-MM-dd"/>
		       	 </c:if>
		        </td>
		    </tr>
		 </c:when>
		 <c:when test="${entity.type==5 }">
		 	<tr>
		 		<td width="15%" class="table-th" style="font-size:15px;height:36px;">主要负责人从业资格证号</td>
		        <td class="table-td" style="font-size:15px;height:36px;" width="20%">${entity.mainPersonResNum}</td>
		        <td class="table-th" style="height:36px;font-size:15px;" width="13%">从业资格证号有效期</td>
		        <td class="table-td" style="font-size:15px;height:36px;" colspan="3">
		       	 <c:if test="${not empty entity.mainPersonResNum  }">
		       		<fmt:formatDate value="${entity.mainPersonResNum}" pattern="yyyy-MM-dd"/>
		       	 </c:if>
		        </td>
		 	</tr>
		 </c:when>
	  </c:choose>
	  
	  <tr>
	  	<td width="15%" class="table-th" style="font-size:15px;height:36px;">人员类型</td>
	  	<td class="table-td"  style="font-size:15px;height:36px;" width="20%">
          		<c:choose>
	           		<c:when test="${entity.type==1}">驾驶员</c:when>
	           		<c:when test="${entity.type==2 }">押运员</c:when>
	           		<c:when test="${entity.type==3 }">安管员</c:when>
	           		<c:when test="${entity.type==4 }">装卸管理员</c:when>
	           		<c:when test="${entity.type==5 }">主要负责人</c:when>
	           		<c:otherwise></c:otherwise>
           		</c:choose>
         </td> 
        <td width="13%" class="table-th" style="font-size:15px;height:36px;">聘用期限</td>
	  	<td class="table-td"  style="font-size:15px;height:36px;" width="20%">${entity.employTime }年</td>
	  	<td width="12%" class="table-th" style="font-size:15px;height:36px;">责任状期限</td>
	  	<td class="table-td"  style="font-size:15px;height:36px;" width="20%">${entity.dutyTime }年</td>
	  </tr>
	  <tr colspan="2">
	  	<td  width="15%" style="font-size:15px;height:36px;" class="table-th">主要岗位</td>
	  	<td class="table-td" style="font-size:15px;height:36px;" width="20%">${entity.dutyPost}</td>
	  	<td  width="13%" style="font-size:15px;height:36px;" class="table-th">现住地址</td>
	  	<td  class="table-td"   style="font-size:15px;height:36px;" colspan="2"> ${entity.address }</td>
	  	<td  class="table-th"  style="font-size:15px;height:36px;" width="12%" style="font-size:15px">个人照片</td>
	  </tr>
      <tr colspan="3">
      <td  width="15%" class="table-th" style="font-size:15px;">备注</td>
	  <td class="table-td"  style="font-size:15px;" colspan="4">${entity.remark }</td>
	  <td class="table-td" width="20%" align="center">
	  	<c:choose>
	  		<c:when test="${not empty entity.photo }">
	  			<img src="${ctx}/upload/${entity.photo}" style="width: 150px; height:180px;"/>
	  		</c:when>
	  		<c:otherwise>
	  			<img src="${ctx}/images/organ/nophoto.gif" style="width: 150px; height:180px;"/>
	  		</c:otherwise>
	  	</c:choose>
	  </td>
     </tr>
     <tr>
        <td colspan="6" class="table-td" style="font-size:13px;">
        	附：人员相关证件
        </td>
     </tr>
	 </tbody>
  </table>
  </div>
  </body>
  </html>
  